package com.sjy.springcloud.service.impl;

import com.sjy.springcloud.dao.PaymentDao;
import com.sjy.springcloud.entities.Payment;
import com.sjy.springcloud.service.IPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: microservice2022
 * @description: 支付模块业务逻辑
 * @author: Mr.abel(ShiJiaYi)
 * @create: 2022-01-14 13:14
 **/
@Service
public class PaymentService implements IPaymentService {
    @Autowired
    private PaymentDao pd;

    @Override
    public int createPayment(Payment payment) {
        return pd.createPayment(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return pd.getPaymentById(id);
    }
}
